package com.xms.web.view.security;

import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 * RoleViewController
 * </p>
 *
 * @author migo
 * @since 2021/9/24
 */
@Controller
@RequestMapping("{org}/security/role")
public class RoleViewController {
    private static final String MODULE_PATH = "security";

    @ApiOperation("角色选择对话框")
    @RequestMapping("dialog")
    public String dialog()
    {
        return MODULE_PATH + "/rolesdialog";
    }

    @ApiOperation("新建角色")
    @RequestMapping("create")
    public String create()
    {
        return MODULE_PATH + "/createrole";
    }

    @ApiOperation("编辑角色")
    @RequestMapping("edit")
    public String edit()
    {
        return MODULE_PATH + "/editrole";
    }

    @ApiOperation("角色成员")
    @RequestMapping("members")
    public String members()
    {
        return MODULE_PATH + "/rolemembers";
    }
}
